package com.ydie.controller;

import com.ydie.entity.flower;
import com.ydie.service.flowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
//////刘志勇灌灌灌灌·
@Controller
public class flowerController {

    @Autowired
    private flowerService flowerService;

    @RequestMapping("show")
    public String showFlower(){

        List<flower> flowers = flowerService.showFlowerAll();

        for (flower f:flowers) {
            System.out.println("ddd"+f);
        }

        return "成功";
    }
}
